import java.util.Scanner;

public class NumberComparer {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入a：");
        int a = scanner.nextInt();
        System.out.print("请输入b：");
        int b = scanner.nextInt();
        if (a % b == 0 || a + b > 100){
            System.out.println(a);
        }else {
            System.out.println(b);
        }
    }
}
